/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(document).ready(function(){
    $("#itgroup label.checkbox").click(function(){
        var this_attr = $(this).attr("for");
        
        var check_val =  $("#"+this_attr).val();
        var lay_id = "#itSkill-"+check_val;
        $(this).parent().parent().after($(lay_id));
        $(".open").removeClass("open").addClass("close");
        $(this).parent().addClass("open");
        $(".lowlevel").hide();
        $(lay_id).show();
        parent.$("#TB_iframeContent").height($("#interactive-box").height()+40);
        var iframe_h = parent.$("#TB_iframeContent").height();
        var win_h = $(window.top.document).height();
        var iframe_top = ($(document).height() - iframe_h)/2;
        parent.$("#TB_iframeContent").css("top",iframe_top+"px");
    });


    $("#certgroup label.checkbox").click(function(){
        var this_attr = $(this).attr("for");
        
        var check_val =  $("#"+this_attr).val();
        var lay_id = "#cert-"+check_val;
        $(this).parent().parent().after($(lay_id));
        $(".open").removeClass("open").addClass("close");
        $(this).parent().addClass("open");
        $(".lowlevel").hide();
        $(lay_id).show();
        parent.$("#TB_iframeContent").height($("#interactive-box").height()+40);
        var iframe_h = parent.$("#TB_iframeContent").height();
        var win_h = $(window.top.document).height();
        var iframe_top = ($(document).height() - iframe_h)/2;
        parent.$("#TB_iframeContent").css("top",iframe_top+"px");
    });

});

